package com.wudd.common.enums;


/**
 * 描述：接口请求返回的状态值
 * @author 吴冬冬
 * @date 2018年10月10日 上午9:37:18  
 * @version V1.0
 */
public enum ResultType {
	ERROR("error",-1,"系统异常"),
	SUCCESS("success",0,"操作成功"),
	FAILURE("failure",1,"操作失败");
	;
	private String result;
	
	private int code;
	
    private String msg;
    
	private ResultType(String result, int code, String msg) {
		this.result = result;
		this.code = code;
		this.msg = msg;
	}

	public String getResult() {
		return result;
	}
	
	public void setResult(String result) {
		this.result = result;
	}
	
	public int getCode() {
		return code;
	}
	
	public void setCode(int code) {
		this.code = code;
	}
	
	public String getMsg() {
		return msg;
	}
	
	public void setMsg(String msg) {
		this.msg = msg;
	}
    
}
